package com.ruoyi.mall.app.service.impl;

import com.ruoyi.mall.app.service.DtsUserService;
import com.ruoyi.mall.common.domain.*;
import com.ruoyi.mall.common.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DtsUserServiceImpl implements DtsUserService {

    @Autowired
    DtsUserMapper dtsUserMapper;

    @Autowired
    DtsGoodsMapper dtsGoodsMapper;

    @Autowired
    DtsGrouponMapper dtsGrouponMapper;

    @Autowired
    DtsFeedbackMapper dtsFeedbackMapper;

    @Autowired
    DtsCollectMapper dtsCollectMapper;

    @Override
    public DtsUser selectUserInfo(long id) {
        return dtsUserMapper.selectDtsUserById(id);
    }

    @Override
    public List<DtsGoods> selectMyCollect(DtsCollect dtsCollect) {
        return dtsGoodsMapper.selectMyCollect(dtsCollect);
    }

    @Override
    public List<DtsGoods> selectMyFootprint(int userId) {
        return dtsGoodsMapper.selectMyFootprint(userId);
    }

    @Override
    public List<DtsGroupon> selectMyGroupon(long userId) {
        return null;
    }

    @Override
    public int addFeedback(DtsFeedback feedback) {
        return dtsFeedbackMapper.insertDtsFeedback(feedback);
    }

    @Override
    public int addCollect(DtsCollect collect) {
        return dtsCollectMapper.insertDtsCollect(collect);
    }

    @Override
    public int delCollect(DtsCollect collect) {
        return dtsCollectMapper.delCollect(collect);
    }


}
